package tlias.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import tlias.mapper.EmpLogMapper;
import tlias.service.EmpLogService;
import tlias.pojo.EmpLog;

@Service
public class EmpLogServiceImpl implements EmpLogService {
    @Autowired
    private EmpLogMapper empLogMapper;
    @Override
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void insert(EmpLog empLog) {
        empLogMapper.insert(empLog);
    }
}
